<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2025/5/6
  Time: 15:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
  // 设置响应内容类型
  response.setContentType("text/plain");

// 获取验证码参数
  String captcha = request.getParameter("captcha");

// 将验证码存入session
  if(captcha != null && !captcha.isEmpty()) {
    HttpSession sessio = request.getSession();
    session.setAttribute("captcha", captcha);
    out.print("success");
  } else {
    out.print("error");
  }
%>
</body>
</html>
